package com.teacher.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.teacher.pojo.entity.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zfm
 * @since 2021-06-16
 */
public interface DepartmentMapper extends BaseMapper<Department> {

    /**
     * 查询父级id下所有的子id
     *
     * @param departmentId
     * @return
     */
    List<Long> getChildIdsByParentId(@Param("departmentId") Long departmentId);

}
